package com.unisyou.car;

public class Test {
    public static void main(String[] args) {
        CarService cs = new CarServiceImpl();
        CarService carService = new BaomaCarConcreteDecorator(cs);
        carService.setColor("红色");

        CarService carService1  = new BenchiCarConcreteDecorator(new CarServiceImpl());
        carService1.setColor("黑色");
    }
}
